<h1>Dashboard</h1>

<p>Your username is <%= @user.login %></p>

<p>Your birthdate is <%= @user.birthdate %></p>

<p>Movies appropriate for your birthdate are:</p>

<table>
  <tr>
    <th>Title</th>
    <th>Description</th>
    <th>Rating</th>
    <th>Released on</th>
  </tr>

<% @movies.each do |movie| %>
  <tr>
    <td><%=h movie.title %></td>
    <td><%=h movie.description %></td>
    <td><%=h movie.rating %></td>
    <td><%=h movie.released_on %></td>
  </tr>
<% end %>
</table>